<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ page session="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<link rel="stylesheet" type="text/css" href="<spring:url value="/resources/style/layout.css" htmlEscape="true" />" />
<link rel="stylesheet" type="text/css" href="<spring:url value="/resources/style/style.css" htmlEscape="true" />" />
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>SMART <decorator:title /></title>
<script type="text/javascript">
	var appBasePath = '${pageContext.request.contextPath}';
</script>
<script type="text/javascript" src="<c:url value="/resources/js/jquery-1.7.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/jquery.validate.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/jquery.form.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/common.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/utils.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/overlib.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/js/keepAlive.js" />"></script>
</head>
<body>
	<fmt:setLocale value="en_US" scope="session"/>
	<div id="container">
		<%@ include file="../navigation.jsp"%>
		<div id="middle">
			<div id="notificationDiv" class="info">
      			<c:if test="${notification != null}">
					<spring:message text="${notification}" />&nbsp;
				</c:if>
			</div>
			<div id="errorsDiv" class="errors">
				<spring:hasBindErrors name="${commandName}">
						<c:forEach var="error" items="${errors.allErrors}">
						<c:choose>
	      						<c:when test="${error.code == 'null'}">
									<spring:message text="${error.defaultMessage}" />&nbsp;
								</c:when>
								<c:otherwise>
									<spring:message code="${error.code}" arguments="${error.arguments}"/>&nbsp;
								</c:otherwise>
							</c:choose>
						</c:forEach>
				</spring:hasBindErrors>
			</div>
			
			<table cellspacing="0" cellpadding="0">
				<tr>
					<td id="leftcol" align="center">
						<c:if test="${leftSectionComponent != null}">
							<jsp:include page="${leftSectionComponent}" />
						</c:if>
						<br/><br/>
					</td>
					
					<td id="mainpage" <c:if test="${sessionScope.rbsc_smart_usercontext.menuConfiguration.selectedMenuItem.applicationSection == 'analytics'}">class="grayBackground"</c:if>>
						<decorator:body />
					</td>
				</tr>
			</table>
		</div>
		<div id="footer">
			<table width="100%" height="100%" cellpadding="6">
				<tr>
					<td valign="middle" align="right">
						<img title="Bottom Logo" alt="Bottom Logo"
							 src="<c:url value="/resources/images/bottom_logo.gif"/>">
					</td>
				</tr>
			</table>
			
		</div>
	</div>
</body>
</html>